﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="-1">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="icon" href="images/favicon.png">

<title>ASUS Wireless Router <#Web_Title#> - 5G <#menu5_1_1#></title>
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/main.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/css/engage.itoggle.css">

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/bootstrap/js/engage.itoggle.min.js"></script>
<script type="text/javascript" src="/state_5g.js"></script>
<script type="text/javascript" src="/help.js"></script>
<script type="text/javascript" src="/general.js"></script>
<script type="text/javascript" src="/popup.js"></script>
<script type="text/javascript" src="/md5.js"></script>
<script type="text/javascript" src="/detect.js"></script>

<script>
    var $j = jQuery.noConflict();
    $j(document).ready(function() {
        $j('#wl_closed_on_of').iToggle({
            easing: 'linear',
            speed: 70,
            onClickOn: function(){
                change_common_radio(this, 'WLANConfig11b', 'wl_closed', '1');
                $j("#wl_closed_fake").attr("checked", "checked").attr("value", 1);
                $j("#wl_closed_1").attr("checked", "checked");
                $j("#wl_closed_0").removeAttr("checked");
            },
            onClickOff: function(){
                change_common_radio(this, 'WLANConfig11b', 'wl_closed', '0');
                $j("#wl_closed_fake").removeAttr("checked").attr("value", 0);
                $j("#wl_closed_0").attr("checked", "checked");
                $j("#wl_closed_1").removeAttr("checked");
            }
        });
        $j("#wl_closed_on_of label.itoggle").css("background-position", $j("input#wl_closed_fake:checked").length > 0 ? '0% -27px' : '100% -27px');
    })
</script>

<script>
wan_route_x = '<% nvram_get_x("IPConnection", "wan_route_x"); %>';
wan_nat_x = '<% nvram_get_x("IPConnection", "wan_nat_x"); %>';
wan_proto = '<% nvram_get_x("Layer3Forwarding",  "wan_proto"); %>';

var wireless = [<% wl_auth_list(); %>];	// [[MAC, associated, authorized], ...]

<% login_state_hook(); %>

function initial(){
	//r wl_nband = '<% nvram_get_x("WLANConfig11b",  "wl_nband"); %>';
	//document.form.wl_nband.value == "1";
	
	show_banner(1);
	show_menu(5,1,1);
	show_footer();
	
	enable_auto_hint(0, 21);
	
	load_body();
	
	document.form.wl_ssid.value = decodeURIComponent(document.form.wl_ssid2.value);
	document.form.wl_wpa_psk.value = decodeURIComponent(document.form.wl_wpa_psk_org.value);
	document.form.wl_key1.value = decodeURIComponent(document.form.wl_key1_org.value);
	document.form.wl_key2.value = decodeURIComponent(document.form.wl_key2_org.value);
	document.form.wl_key3.value = decodeURIComponent(document.form.wl_key3_org.value);
	document.form.wl_key4.value = decodeURIComponent(document.form.wl_key4_org.value);
	document.form.wl_phrase_x.value = decodeURIComponent(document.form.wl_phrase_x_org.value);
	
	if(document.form.wl_wpa_psk.value.length <= 0)
		document.form.wl_wpa_psk.value = "Please type Password";

	wl_nband_select(1);
	wl_auth_mode_change(1);
	document.form.wl_channel.value = document.form.wl_channel_orig.value;
	
	automode_hint();
}

function applyRule(){
	var auth_mode = document.form.wl_auth_mode.value;
	
	if(document.form.wl_wpa_psk.value == "Please type Password")
		document.form.wl_wpa_psk.value = "";

	if(validForm()){
		showLoading();
		
		document.form.action_mode.value = " Apply ";
		document.form.current_page.value = "";
		document.form.next_page.value = "/Advanced_Wireless_Content.asp";
		
		if(auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "radius")
			document.form.next_page.value = "/Advanced_WSecurity_Content.asp";
		
		inputCtrl(document.form.wl_crypto, 1);
		inputCtrl(document.form.wl_wpa_psk, 1);
		inputCtrl(document.form.wl_wep_x, 1);
		inputCtrl(document.form.wl_key, 1);
		inputCtrl(document.form.wl_key1, 1);
		inputCtrl(document.form.wl_key2, 1);
		inputCtrl(document.form.wl_key3, 1);
		inputCtrl(document.form.wl_key4, 1);
		inputCtrl(document.form.wl_phrase_x, 1);
		inputCtrl(document.form.wl_wpa_gtk_rekey, 1);
		
		document.form.submit();
	}
}

function validForm(){
	var auth_mode = document.form.wl_auth_mode.value;
	
	if(!validate_string_ssid(document.form.wl_ssid))
		return false;

    if(document.form.wl_ssid.value == "")
        document.form.wl_ssid.value = "ASUS_5G";
	
	if(document.form.wl_wep_x.value != "0")
		if(!validate_wlphrase('WLANConfig11b', 'wl_phrase_x', document.form.wl_phrase_x))
			return false;	
	if(auth_mode == "psk"){ //2008.08.04 lock modified
		if(!validate_psk(document.form.wl_wpa_psk))
			return false;
		
		if(!validate_range(document.form.wl_wpa_gtk_rekey, 0, 2592000))
			return false;
	}
	else if(auth_mode == "wpa" || auth_mode == "wpa2"){
		if(!validate_range(document.form.wl_wpa_gtk_rekey, 0, 2592000))
			return false;
	}
	else{
		var cur_wep_key = eval('document.form.wl_key'+document.form.wl_key.value);		
		if(auth_mode != "radius" && !validate_wlkey(cur_wep_key))
			return false;
	}	
	return true;
}

function done_validating(action){
	refreshpage();
}

function change_key_des(){
	var objs = getElementsByName_iefix("span", "key_des");
	var wep_type = document.form.wl_wep_x.value;
	var str = "";
	
	if(wep_type == "1")
		str = "(<#WLANConfig11b_WEPKey_itemtype1#>)";
	else if(wep_type == "2")
		str = "(<#WLANConfig11b_WEPKey_itemtype2#>)";
	
	for(var i = 0; i < objs.length; ++i)
		showtext(objs[i], str);
}

function validate_wlphrase(s, v, obj){
	if(!validate_string(obj)){
		is_wlphrase(s, v, obj);
		return(false);
	}
	
	return true;
}

function wl_nband_select(ch){
	if(ch == "1"){
//		showtext($("wl_channel_select"), "5 GHz <#WLANConfig11b_Channel_itemname#>");
		document.form.wl_nband.value = 1;
		insertExtChannelOption();
		return change_common_radio(this, 'WLANConfig11b', 'wl_nband', '1');
	}
	else{
//		showtext($("wl_channel_select"), "2.4 GHz <#WLANConfig11b_Channel_itemname#>");
		document.form.wl_nband.value = 2;
		insertExtChannelOption();
		return change_common_radio(this, 'WLANConfig11b', 'wl_nband', '2');
	}
}
</script>

<style>
    .table th, .table td{vertical-align: middle;}
    .table input, .table select {margin-bottom: 0px;}
</style>

</head>

<body onload="initial();" onunLoad="disable_auto_hint(0, 11);return unload_body();">
<div class="container-fluid" style="padding-right: 0px">
    <div class="row-fluid">
        <div class="span2"><center><div id="logo"></div></center></div>
        <div class="span10" >
            <div id="TopBanner"></div>
        </div>
    </div>
</div>

<div id="Loading" class="popup_bg"></div>

<div style="position: absolute; margin-left: -10000px;">
    <div id="hiddenMask" class="popup_bg">
        <table cellpadding="5" cellspacing="0" id="dr_sweet_advise" class="dr_sweet_advise" align="center">
            <tr>
            <td>
                <div class="drword" id="drword"><#Main_alert_proceeding_desc4#> <#Main_alert_proceeding_desc1#>...
                    <br/>
                    <br/>
                </div>
              <div class="drImg"><img src="images/DrsurfImg.gif"></div>
                <div style="height:70px; "></div>
            </td>
            </tr>
        </table>
    <!--[if lte IE 6.5]><iframe class="hackiframe"></iframe><![endif]-->
    </div>
</div>

<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe>
<form method="post" name="form" action="/start_apply2.htm" target="hidden_frame">
<input type="hidden" name="productid" value="<% nvram_get_f("general.log","productid"); %>">
<input type="hidden" name="wan_route_x" value="<% nvram_get_x("IPConnection","wan_route_x"); %>">
<input type="hidden" name="wan_nat_x" value="<% nvram_get_x("IPConnection","wan_nat_x"); %>">

<input type="hidden" name="current_page" value="Advanced_Wireless_Content.asp">
<input type="hidden" name="next_page" value="">
<input type="hidden" name="next_host" value="">
<input type="hidden" name="sid_list" value="WLANConfig11b;">
<input type="hidden" name="group_id" value="">
<input type="hidden" name="modified" value="0">
<input type="hidden" name="action_mode" value="">
<input type="hidden" name="action_script" value="">
<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get_x("LANGUAGE", "preferred_lang"); %>">
<input type="hidden" name="firmver" value="<% nvram_get_x("",  "firmver"); %>">
<!--input type="hidden" name="wl_nbw" value="<% nvram_get_x("",  "wl_nbw"); %>"-->

<input type="hidden" name="wl_ssid2" value="<% nvram_char_to_ascii("WLANConfig11b",  "wl_ssid"); %>">
<input type="hidden" name="wl_wpa_mode" value="<% nvram_get_x("WLANConfig11b","wl_wpa_mode"); %>">
<input type="hidden" name="wl_wpa_psk_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_wpa_psk"); %>">
<input type="hidden" name="wl_key1_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key1"); %>">
<input type="hidden" name="wl_key2_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key2"); %>">
<input type="hidden" name="wl_key3_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key3"); %>">
<input type="hidden" name="wl_key4_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key4"); %>">
<input type="hidden" name="wl_phrase_x_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_phrase_x"); %>">

<input type="hidden" maxlength="15" size="15" name="x_RegulatoryDomain" value="<% nvram_get_x("Regulatory","x_RegulatoryDomain"); %>" readonly="1">
<!--input type="hidden" name="wl_gmode_protection" value="<% nvram_get_x("WLANConfig11b", "wl_gmode_protection"); %>"-->
<input type="hidden" name="wl_wme" value="<% nvram_get_x("WLANConfig11b","wl_wme"); %>">
<input type="hidden" name="wl_mode_x" value="<% nvram_get_x("WLANConfig11b","wl_mode_x"); %>">
<input type="hidden" name="wl_nmode" value="<% nvram_get_x("WLANConfig11b","wl_nmode"); %>">
<input type="hidden" name="HT_EXTCHA_old" value="<% nvram_get_x("WLANConfig11b","HT_EXTCHA"); %>">

<input type="hidden" name="wl_nband" value="1">
<input type="hidden" name="wl_key_type" value='<% nvram_get_x("WLANConfig11b","wl_key_type"); %>'> <!--Lock Add 2009.03.10 for ralink platform-->
<input type="hidden" name="wl_channel_orig" value='<% nvram_get_x("WLANConfig11b","wl_channel"); %>'>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span2">
            <!--Sidebar content-->
            <!--=====Beginning of Main Menu=====-->
            <div class="well sidebar-nav side_nav" style="padding: 0px;">
                <ul id="mainMenu" class="clearfix"></ul>
                <ul class="clearfix">
                    <li>
                        <div id="subMenu" class="accordion"></div>
                    </li>
                </ul>
            </div>
        </div>

        <div class="span10">
            <!--Body content-->
            <div class="row-fluid">
                <div class="span12">
                    <div class="box well grad_colour_dark_blue">
                        <h2 class="box_head round_top"><#menu5_1#> - <#menu5_1_1#> (5GHz)</h2>
                        <div class="round_bottom">
                            <div class="row-fluid">
                                <div id="tabMenu" class="submenuBlock"></div>
                                <table width="100%" align="center" cellpadding="4" cellspacing="0" class="table" id="WLgeneral">
                                    <tr>
                                        <th width="50%" style="border-top: 0 none;"><a class="help_tooltip" href="javascript: void(0)" onmouseover="openTooltip(this, 0, 1);"><#WLANConfig11b_SSID_itemname#></a></th>
                                        <td style="border-top: 0 none;"><input type="text" maxlength="32" class="input" size="32" name="wl_ssid" value="" onkeypress="return is_string(this)"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 2);"><#WLANConfig11b_x_BlockBCSSID_itemname#></a></th>
                                        <td>
                                            <div class="main_itoggle">
                                                <div id="wl_closed_on_of">
                                                    <input type="checkbox" id="wl_closed_fake" <% nvram_match_x("WLANConfig11b", "wl_closed", "1", "value=1 checked"); %><% nvram_match_x("WLANConfig11b", "wl_closed", "0", "value=0"); %>>
                                                </div>
                                            </div>

                                            <div style="position: absolute; margin-left: -10000px;">
                                                <input type="radio" value="1" id="wl_closed_1" name="wl_closed" onClick="return change_common_radio(this, 'WLANConfig11b', 'wl_closed', '1')" <% nvram_match_x("WLANConfig11b", "wl_closed", "1", "checked"); %> /><#checkbox_Yes#>
                                                <input type="radio" value="0" id="wl_closed_0" name="wl_closed" onClick="return change_common_radio(this, 'WLANConfig11b', 'wl_closed', '0')" <% nvram_match_x("WLANConfig11b", "wl_closed", "0", "checked"); %> /><#checkbox_No#>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 4);"><#WLANConfig11b_x_Mode11g_itemname#></a></th>
                                        <td>
                                            <select name="wl_gmode" class="input" onChange="return change_common(this, 'WLANConfig11b', 'wl_gmode')">
                                                <option value="2" <% nvram_match_x("WLANConfig11b","wl_gmode", "2","selected"); %>>a/n Mixed</option>
                                                <option value="1" <% nvram_match_x("WLANConfig11b","wl_gmode", "1","selected"); %>>n Only</option>
                                                <option value="0" <% nvram_match_x("WLANConfig11b","wl_gmode", "0","selected"); %>>a Only</option>
                                            </select>
                                            <span id="wl_gmode_hint" style="display:none"><#WLANConfig11n_automode_limition_hint#></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 14);"><#WLANConfig11b_ChannelBW_itemname#></a></th>
                                        <td>
                                            <select name="HT_BW" class="input" onChange="return change_common(this, 'WLANConfig11b', 'HT_BW')">
                                                <option class="content_input_fd" value="0" <% nvram_match_x("WLANConfig11b","HT_BW", "0","selected"); %>>20 MHz</option>
                                                <option class="content_input_fd" value="1" <% nvram_match_x("WLANConfig11b","HT_BW", "1","selected"); %>>20/40 MHz</option>
                                                <option class="content_input_fd" value="2" <% nvram_match_x("WLANConfig11b","HT_BW", "2","selected"); %>>40 MHz</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a id="wl_channel_select" class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 3);"><#WLANConfig11b_Channel_itemname#></a></th>
                                        <td>
                                            <select name="wl_channel" class="input" onChange="return change_common(this, 'WLANConfig11b', 'wl_channel')">
                                                <!-- % select_channel("WLANConfig11b"); % -->
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 15);"><#WLANConfig11b_EChannel_itemname#></a></th>
                                        <td>
                                            <select name="HT_EXTCHA" class="input">
                                                <option value="1" selected>Auto</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 5);"><#WLANConfig11b_AuthenticationMethod_itemname#></a></th>
                                        <td>
                                            <select name="wl_auth_mode" class="input" onChange="return change_common(this, 'WLANConfig11b', 'wl_auth_mode');">
                                                <option value="open" <% nvram_match_x("WLANConfig11b", "wl_auth_mode", "open", "selected"); %>>Open System</option>
                                                <option value="shared" <% nvram_match_x("WLANConfig11b", "wl_auth_mode", "shared", "selected"); %>>Shared Key</option>
                                                <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "1", "selected"); %>>WPA-Personal</option>
                                                <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "2", "selected"); %>>WPA2-Personal</option>
                                                <option value="psk" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "psk", "WLANConfig11b", "wl_wpa_mode", "0", "selected"); %>>WPA-Auto-Personal</option>
                                                <option value="wpa" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "wpa", "WLANConfig11b", "wl_wpa_mode", "3", "selected"); %>>WPA-Enterprise</option>
                                                <option value="wpa2" <% nvram_match_x("WLANConfig11b", "wl_auth_mode", "wpa2", "selected"); %>>WPA2-Enterprise</option>
                                                <option value="wpa" <% nvram_double_match_x("WLANConfig11b", "wl_auth_mode", "wpa", "WLANConfig11b", "wl_wpa_mode", "4", "selected"); %>>WPA-Auto-Enterprise</option>
                                                <option value="radius" <% nvram_match_x("WLANConfig11b", "wl_auth_mode", "radius", "selected"); %>>Radius with 802.1x</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 6);"><#WLANConfig11b_WPAType_itemname#></a></th>
                                        <td>
                                            <select name="wl_crypto" class="input" onChange="return change_common(this, 'WLANConfig11b', 'wl_crypto')">
                                                <!-- the options was defined in general2g.js, plz grep "TKIP" -->
                                                <option value="aes" <% nvram_match_x("WLANConfig11b", "wl_crypto", "aes", "selected"); %>>AES</option>
                                                <option value="tkip+aes" <% nvram_match_x("WLANConfig11b", "wl_crypto", "tkip+aes", "selected"); %>>TKIP+AES</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 7);"><#WLANConfig11b_x_PSKKey_itemname#></a></th>
                                        <td>
                                            <input type="text" name="wl_wpa_psk" maxlength="64" class="input" size="32" value="">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 9);"><#WLANConfig11b_WEPType_itemname#></a></th>
                                        <td>
                                            <select name="wl_wep_x" class="input" onChange="return change_common(this, 'WLANConfig11b', 'wl_wep_x');">
                                                <option value="0" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "0", "selected"); %>>None</option>
                                                <option value="1" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "1", "selected"); %>>WEP-64bits</option>
                                                <option value="2" <% nvram_match_x("WLANConfig11b", "wl_wep_x", "2", "selected"); %>>WEP-128bits</option>
                                            </select>
                                            <br>
                                            <span name="key_des"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 10);"><#WLANConfig11b_WEPDefaultKey_itemname#></a></th>
                                        <td>
                                            <select name="wl_key" class="input"  onChange="return change_common(this, 'WLANConfig11b', 'wl_key');">
                                                <option value="1" <% nvram_match_x("WLANConfig11b","wl_key", "1","selected"); %>>1</option>
                                                <option value="2" <% nvram_match_x("WLANConfig11b","wl_key", "2","selected"); %>>2</option>
                                                <option value="3" <% nvram_match_x("WLANConfig11b","wl_key", "3","selected"); %>>3</option>
                                                <option value="4" <% nvram_match_x("WLANConfig11b","wl_key", "4","selected"); %>>4</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 18);"><#WLANConfig11b_WEPKey1_itemname#></th>
                                        <td><input type="text" name="wl_key1" id="wl_key1" maxlength="32" class="input" size="34" value="" onKeyUp="return change_wlkey(this, 'WLANConfig11b');"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 18);"><#WLANConfig11b_WEPKey2_itemname#></th>
                                        <td><input type="text" name="wl_key2" id="wl_key2" maxlength="32" class="input" size="34" value="" onKeyUp="return change_wlkey(this, 'WLANConfig11b');"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 18);"><#WLANConfig11b_WEPKey3_itemname#></th>
                                        <td><input type="text" name="wl_key3" id="wl_key3" maxlength="32" class="input" size="34" value="" onKeyUp="return change_wlkey(this, 'WLANConfig11b');"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 18);"><#WLANConfig11b_WEPKey4_itemname#></th>
                                        <td><input type="text" name="wl_key4" id="wl_key4" maxlength="32" class="input" size="34" value="" onKeyUp="return change_wlkey(this, 'WLANConfig11b');"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 8);"><#WLANConfig11b_x_Phrase_itemname#></a></th>
                                        <td>
                                            <input type="text" name="wl_phrase_x" maxlength="64" class="input" size="32" value="" onKeyUp="return is_wlphrase('WLANConfig11b', 'wl_phrase_x', this);">
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 11);"><#WLANConfig11b_x_Rekey_itemname#></a></th>
                                        <td><input type="text" maxlength="7" size="7" name="wl_wpa_gtk_rekey" class="input"  value="<% nvram_get_x("WLANConfig11b", "wl_wpa_gtk_rekey"); %>"></td>
                                    </tr>
                                    <tr>
                                        <th><a class="help_tooltip" href="javascript:void(0);" onmouseover="openTooltip(this, 0, 17);"><#WLANConfig11b_TxPower_itemname#></a></th>
                                        <td><input type="text" maxlength="3" size="3" name="TxPower" onblur="return validate_range(this, 0, 100)" class="input" onClick="openHint(0, 17);" value="<% nvram_get_x("WLANConfig11b", "TxPower"); %>"></td>
                                    </tr>
                                    <tr>
                                        <th><#WIFIRegionCode#></th>
                                        <td>
                                            <select name="wl_country_code" class="input">
                                                <option value="US" <% nvram_match_x("WLANConfig11b", "wl_country_code", "US","selected"); %>>USA (channels 36,40,44,48,149,153,157,161,165)</option>
                                                <option value="GB" <% nvram_match_x("WLANConfig11b", "wl_country_code", "GB","selected"); %>>Europe (channels 36,40,44,48)</option>
                                                <option value="TW" <% nvram_match_x("WLANConfig11b", "wl_country_code", "TW","selected"); %>>Taiwan (channels 149,153,157,161)</option>
                                                <option value="CN" <% nvram_match_x("WLANConfig11b", "wl_country_code", "CN","selected"); %>>China (channels 149,153,157,161,165)</option>
                                                <option value="JP" <% nvram_match_x("WLANConfig11b", "wl_country_code", "JP","selected"); %>>Japan (channels 36,40,44,48)</option>
                                                <option value="DB" <% nvram_match_x("WLANConfig11b", "wl_country_code", "DB","selected"); %>>Debug (all channels)</option>
                                            </select>
                                        </td>
                                    </tr>
                                </table>

                                <table width="100%" style="margin: 8px 8px 10px 0px;">
                                    <tr>
                                        <td width="50%"><input type="button" class="btn btn-info" style="margin-left: 5px;" value="<#GO_2G#>" onclick="location.href='Advanced_Wireless2g_Content.asp';"></td>
                                        <td width="50%" align="left"><input type="button" id="applyButton" class="btn btn-primary" style="margin-left: 8px; width: 219px" value="<#CTL_apply#>" onclick="applyRule();"></td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</form>

<div style="position: absolute; margin-left: -10000px;">
    <form name="hint_form"></form>
    <div id="helpicon" onClick="openHint(0, 0);" title="Click to open Help."><img src="images/help.gif"></div>

    <div id="hintofPM" style="display:none;">
        <div id="helpname" class="AiHintTitle"></div>
        <a href="javascript:closeHint();"><img src="images/button-close.gif" class="closebutton" /></a>
        <div id="hint_body" class="hint_body2"></div>
        <iframe id="statusframe" name="statusframe" class="statusframe" src="" frameborder="0"></iframe>
    </div>
</div>

<div id="footer"></div>
</body>
</html>
